package com.sbdo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.sbdo.mapper.SbdoDemo1Mapper;
import com.sbdo.mode.SbdoUser;
import com.sbdo.service.SbdoDemo1Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class SbdoDemo1ServiceImpl implements SbdoDemo1Service{

    @Autowired
    private SbdoDemo1Mapper sbdoDemo1Mapper;

    @Override
    public String sayHello(String name) {

        SbdoUser info = sbdoDemo1Mapper.findByUserName(name);

        return "I am " + name;
    }

    @Override
    public int insertUser() {
        return 0;
    }
}